package com.design.singleton;

public enum EnumSingleton {
    SINGLETON;
    public void print() {
        System.out.println(this.hashCode());
    }
}

class Test {
    public static void main(String[] args) {
        EnumSingleton.SINGLETON.print();
    }
}